<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>万里金融系统-每日新闻</title>
  <link href="../../css/css.css" rel="stylesheet" type="text/css" />
  <script type="text/javascript" src="../../js/jquery.js"></script>
  <script type="text/javascript" src="../../js/base.js"></script>
  <script src="../../js/template.js"></script>
  <script src="../../js/bootstrap-paginator.js"></script>
  <script src="../../js/bootstrap-mypaginator.js"></script>
  <style type="text/css">
    .pagination {
      display: inline-block;
      padding-left: 0;
      margin: 20px 0;
      border-radius: 4px;
    }

    .pagination>li {
      display: inline;
    }

    .pagination>li>a,
    .pagination>li>span {
      position: relative;
      float: left;
      padding: 6px 12px;
      margin-left: -1px;
      line-height: 1.42857143;
      color: #428bca;
      text-decoration: none;
      background-color: #fff;
      border: 1px solid #ddd;
    }

    .pagination>li:first-child>a,
    .pagination>li:first-child>span {
      margin-left: 0;
      border-top-left-radius: 4px;
      border-bottom-left-radius: 4px;
    }

    .pagination>li:last-child>a,
    .pagination>li:last-child>span {
      border-top-right-radius: 4px;
      border-bottom-right-radius: 4px;
    }

    .pagination>li>a:hover,
    .pagination>li>span:hover,
    .pagination>li>a:focus,
    .pagination>li>span:focus {
      color: #2a6496;
      background-color: #eee;
      border-color: #ddd;
    }

    .pagination>.active>a,
    .pagination>.active>span,
    .pagination>.active>a:hover,
    .pagination>.active>span:hover,
    .pagination>.active>a:focus,
    .pagination>.active>span:focus {
      z-index: 2;
      color: #fff;
      cursor: default;
      background-color: #428bca;
      border-color: #428bca;
    }

    .pagination>.disabled>span,
    .pagination>.disabled>span:hover,
    .pagination>.disabled>span:focus,
    .pagination>.disabled>a,
    .pagination>.disabled>a:hover,
    .pagination>.disabled>a:focus {
      color: #777;
      cursor: not-allowed;
      background-color: #fff;
      border-color: #ddd;
    }

    .pagination-lg>li>a,
    .pagination-lg>li>span {
      padding: 10px 16px;
      font-size: 18px;
    }

    .pagination-lg>li:first-child>a,
    .pagination-lg>li:first-child>span {
      border-top-left-radius: 6px;
      border-bottom-left-radius: 6px;
    }

    .pagination-lg>li:last-child>a,
    .pagination-lg>li:last-child>span {
      border-top-right-radius: 6px;
      border-bottom-right-radius: 6px;
    }

    .pagination-sm>li>a,
    .pagination-sm>li>span {
      padding: 5px 10px;
      font-size: 12px;
    }

    .pagination-sm>li:first-child>a,
    .pagination-sm>li:first-child>span {
      border-top-left-radius: 3px;
      border-bottom-left-radius: 3px;
    }

    .pagination-sm>li:last-child>a,
    .pagination-sm>li:last-child>span {
      border-top-right-radius: 3px;
      border-bottom-right-radius: 3px;
    }
  </style>
  <script type="text/javascript">
    //分页查询
    function ajaxLoadData(data) {
      $.ajax({
        url: commonurl + "/selectAllNews.news",
        type: "POST",
        data: data,
        dataType: "json",
        success: function (data) {
          if (data.success) {
            obj = data.obj;
            obj.list.forEach(function (value, index) {

              value.createTime = new Date(value.createTime);
              value.createTime = value.createTime.getFullYear() + "年" + (value.createTime.getMonth() + 1) + "月" + value.createTime.getDate() + "日 " + value.createTime.getHours() + "点" + value.createTime.getMinutes() + "分" + value.createTime.getSeconds() + "秒";
            })
            var datas = {
              sources: obj.list,
              commonurlimg: commonurlimg
            };
            $("#newsContent").html(template("newsTemplate", datas));
            myPaginatorFun("myPages", obj.pageNo, obj.pages);
          } else {
            alert(data.msg);
          }
        }

      })
    }

    $(function () {
      setInterval(function () {
        //console.log("111");

        //当前时间：2014年10月10日 04:28:35

        var t = new Date();
        var ts = "当前时间：" + t.getFullYear() + "年" + (t.getMonth() + 1) + "月" + t.getDate() + "日 " + t.getHours() + ":" + t.getMinutes() + ":" + t.getSeconds() + "";
        $("#currentTime").html(ts);
      }, 400);

      //刚进页面加载数据
      ajaxLoadData({

        pageNo: 1
      });
      myoptions.onPageClicked = function (event, originalEvent, type, page) {
        ajaxLoadData({
          pageNo: page
        });
      };
    })

    function findDetail(newsid) {
			sessionStorage.setItem('newsid', newsid);
			location.href = "newsDetail.html";
		}

  </script>
</head>

<body>
  <div class="wrap header oauto clear">
    <div class="fl" style="font-size: 20px;
    font-weight: bold;
    color: #fff;
    line-height: 40px;
    padding-left: 10px;">万里金融系统</div>
    <div class="fr">
      <a id="currentTime" href="#">

      </a>
    </div>
  </div>
  <div class="logo-nav">
    <div class="wrap oauto">
      <div class="clear">
      </div>
    </div>
  </div>
  <div class="menu">
    <ul class="clear">
      <li><a href="index.html">融资产品</a></li>
      <li><a href="news.html" class="cur">每日新闻</a></li>
    </ul>
  </div>

  <div class="wrap font16">首页 >> 每日新闻</div>
  
  <div class="wrap">
    <div class="title clear">
      <h1 class="fl">今日头条</h1>
    </div>
    <div class="salon_top clear">
      <div class="fl">
        <ul id="foo1">
          <li><img src="../../images/3(31).jpg" width="613" height="459" /></li>
        </ul>
        <div id="pager1" class="pager"></div>
      </div>
      <div class="fr">
        <div class="bt">
          <h1><a href="" title="助推小微企业发展融资模式专场推介会">助推小微企业发展融资模式专场推介会助推小微企业发展融资模式专场推介会</a></h1>
          <div class="hudongsalon_success">
            <span class="fe4800">（成功举办）</span>
          </div>
        </div>
        <div class="in clear">
          <div class="time">时间：2020年5月</div>
        </div>
        <div class="txt">
          5月19日上午，由市金融办、南京金融发展促进会联合主办、南京联交所协办的“创新金融服务，落实普惠金融”助推小微企业发展融资模式推介会在联交所一楼交易大厅召开。市政协主席沈健、市委常委、常务副市长刘以安、省银监局副局长丁灿、市金融促进会会长白世春、紫金投资集团董事长王海涛、副总经理管毅等领导出席会议，市金融办主任刘永彪主持会议...
        </div>
      </div>
    </div>
  </div>
  <div class="wrap">
    <div class="title clear">
      <h1 class="fl">其他新闻</h1>
    </div>
    <div class="salon">
      <ul id="newsContent">
        <script id="newsTemplate" type="text/html">
	  			{{each sources as i}}
        	<li class="clear">
            	<div class="fl"><img src="{{commonurlimg+""+i.imageUrl}}" /></div>
                <div class="fl">
                	<div class="salon_title clear">
                    <div class="fl">
                      <a href="javascript:;"  onclick="findDetail('{{i.id}}')" title="投贷保联盟•融动紫金•麒麟科技创新园专场投融资对接会">{{i.newTitle}}</a>
                      <span class="fe4800">  </span></div>
                    <div class="fr">日期：{{i.createTime}}</div></div>
                    <div class="salon_in">{{i.newContent}}</div>
                </div>
            </li>
                 {{/each}}
</script>
      </ul>
      <div style="text-align: center;">
        <ul id="myPages"></ul>
      </div>
      <!--         <div class="newslist_text"><a href="#">上一页</a><a href="#" class="cur">1</a><a href="#">2</a><a href="#">3</a><a href="#">4</a><a href="#">5</a><a href="#">6</a><a href="#">7</a><a href="#">...</a><a href="#">下一页</a></div> -->
    </div>
  </div>
  <div class="footer">Copyright &copy;  版权所有 | <a href="./backend/login.html" target="_blank">后台管理入口</a></div>
</body>

</html>